package Gestion_article;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "article")
public class Article {
public static final String CATEGORIE_FIELD_NAME = "categorie";
public static final String TVA_FIELD_NAME = "type_tva";
public static final String MARQUE_FIELD_NAME = "marque";
public static final String IMAGE_FIELD_NAME = "image";
 @DatabaseField(id = true)
  private Integer Code_article;
@DatabaseField
  private String libelle_article;
@DatabaseField
  private String description_courte_article;
@DatabaseField
  private String description_longue_article;
@DatabaseField
  private Double prix_ht_article;
@DatabaseField
  private Integer quantite_article_en_stock;
@DatabaseField
  private Boolean Visibilite_article;
  @DatabaseField(foreign = true, columnName = CATEGORIE_FIELD_NAME)
  private Integer Code_categorie;
  @DatabaseField(foreign = true, columnName = TVA_FIELD_NAME)
  private Integer Code_tva;
  @DatabaseField(foreign = true, columnName = MARQUE_FIELD_NAME)
  private Integer Code_marque;
  @DatabaseField(foreign = true, columnName = IMAGE_FIELD_NAME)
  private Integer Code_image;

  public Article(Integer unCode, String Libelle, String descriptionCourte, String descriptionLongue, Double Unprix, Integer Unequantite, Boolean UneVisibilte,Integer UneCategorie,Integer unCodeTva,Integer unCodeMarque,Integer unCodeimage) {
  Code_article = unCode;
  libelle_article = Libelle;
  description_courte_article = descriptionCourte;
  description_longue_article = descriptionLongue;
  prix_ht_article = Unprix;
  quantite_article_en_stock = Unequantite ;
  Visibilite_article = UneVisibilte;
  Code_categorie = UneCategorie;
  Code_tva=unCodeTva;
  Code_marque=unCodeMarque;
  Code_image=unCodeimage;
  }

  public Integer get_code_article() {
  return Code_article ;
  }

  public void set_code_article(Integer unCode) {
  Code_article = unCode;
  }

  public String get_libelle_article() {
  return libelle_article;
  }

  public void set_libelle_article(String Libelle) {
  libelle_article = Libelle;
  }

  public String get_descriptionCourte() {
  return description_courte_article;
  }

  public void set_descriptionCourte(String descriptionCourte) {
  description_courte_article = descriptionCourte;
  }

  public String get_descriptionLongue() {
  return description_longue_article;
  }

  public void set_descriptionLongue(String descriptionLongue) {
  description_longue_article = descriptionLongue;
  }

  public Double get_Unprix() {
  return prix_ht_article;
  }

  public void set_Unprix(Double Unprix) {
  prix_ht_article = Unprix;
  }

  public Integer get_Unequantite() {
  return quantite_article_en_stock;
  }

  public void set_Unequantite(Integer Unequantite) {
    quantite_article_en_stock = Unequantite ;
  }

  public Boolean get_UneVisibilite() {
  return Visibilite_article;
  }

  public void set_UneVisibilite(Boolean UneVisibilite) {
   Visibilite_article = UneVisibilite;
  }

    public Integer getCode_categorie() {
        return Code_categorie;
    }

    public void setCode_categorie(Integer UneCategorie) {
        Code_categorie = UneCategorie;
    }

    public Integer getCode_tva() {
        return Code_tva;
    }

    public void setCode_tva(Integer Code_tva) {
        this.Code_tva = Code_tva;
    }

    public Integer getCode_marque() {
        return Code_marque;
    }

    public void setCode_marque(Integer Code_marque) {
        this.Code_marque = Code_marque;
    }

    public Integer getCode_image() {
        return Code_image;
    }

    public void setCode_image(Integer Code_image) {
        this.Code_image = Code_image;
    }
  
  

}